import request from '@/utils/request'

// 查询路灯管养任务完成进度列表
export function listLamp(query) {
  return request({ method: 'get', params: query,url: '/standingbook/lamp/list'})
}

// 查询路灯管养任务完成进度详细
export function getLamp(id) {
  return request({ url: '/standingbook/lamp/' + id, method: 'get'  })
}

// 新增路灯管养任务完成进度
export function addLamp(data) {
  return request({url: '/standingbook/lamp',method: 'post',data: data})
}

// 修改路灯管养任务完成进度
export function updateLamp(data) {
  return request({method: 'put',data: data,url: '/standingbook/lamp' })
}

// 删除路灯管养任务完成进度
export function delLamp(id) {
  return request({  method: 'delete', url: '/standingbook/lamp/' + id  })
}
